<%--
  Created by IntelliJ IDEA.
  Customer: lucas
  Date: 2018/2/1
  Time: 上午9:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@include file="../common.jsp"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>用户编辑--空调小程序后台</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all" />
    <link rel="stylesheet" href="${ctx}/css/public.css" media="all" />
</head>
<body class="childrenBody">
<form class="layui-form layui-row layui-col-space10">
    <input type="hidden" class="layui-input id" name="id"  value="${info.id}">

    <div class="layui-col-md9 layui-col-xs12">

        <div class="layui-row layui-col-space10">

            <div class="layui-col-md9 layui-col-xs7">
                <div class="layui-form-item magt3">
                    <label class="layui-form-label">状态</label>
                    <div class="layui-input-block">
                       <select lay-verify="required" class="layui-select layui-input" name="state" id="state">
                           <c:if test="${info.state==1}">
                               <option value="1" selected>上架</option>
                               <option value="2">下架</option>
                           </c:if>
                           <c:if test="${info.state!=1}">
                               <option value="1" >上架</option>
                               <option value="2" selected>下架</option>
                           </c:if>
                       </select>
                    </div>
                </div>
            </div>
        </div>

    </div>

    <div class="layui-form-item layui-row layui-col-xs12">
        <div class="layui-input-block">
            <button class="layui-btn layui-btn-sm" lay-submit="" lay-filter="sub">提交</button>
        </div>
    </div>
</form>
<script type="text/javascript" src="${ctx}/layui/layui.js"></script>
<script type="text/javascript" src="${ctx}/js/info/stateEdit.js"></script>
</body>
</html>
